import request from '@/utils/request'

// 查询用户与宠物的聊天详情列表
export function listMessagedetails(query) {
  return request({
    url: '/digital/messagedetails/list',
    method: 'get',
    params: query
  })
}

// 查询用户与宠物的聊天详情详细
export function getMessagedetails(id) {
  return request({
    url: '/digital/messagedetails/' + id,
    method: 'get'
  })
}

// 新增用户与宠物的聊天详情
export function addMessagedetails(data) {
  return request({
    url: '/digital/messagedetails',
    method: 'post',
    data: data
  })
}

// 修改用户与宠物的聊天详情
export function updateMessagedetails(data) {
  return request({
    url: '/digital/messagedetails',
    method: 'put',
    data: data
  })
}

// 删除用户与宠物的聊天详情
export function delMessagedetails(id) {
  return request({
    url: '/digital/messagedetails/' + id,
    method: 'delete'
  })
}

// 导出用户与宠物的聊天详情
export function exportMessagedetails(query) {
  return request({
    url: '/digital/messagedetails/export',
    method: 'get',
    params: query
  })
}